import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter_module/app/app.dart';
import 'package:flutter_module/channel/channel_basic.dart';
import 'package:flutter_module/channel/channel_binary.dart';
import 'package:flutter_module/channel/channel_method.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

void main() {
  runZonedGuarded(() async {
    await ScreenUtil.ensureScreenSize();
    runApp(RouteStateApp());
    initNativeChannel();
    initBasicMessageChannel();
    initBinaryMessenger();
  }, (error, StackTrace stackTrace) {});
}
